package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_kfc_favor")
@ApiModel(value="ve_kfc_favor对象", description="课程收藏")
public class VeKfcFavor
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("开课课程ID")
    private Integer opcosid;
    @ApiModelProperty("课程名称")
    private String coursename;
    @ApiModelProperty("用户id，传0时为当前当前登录用户id")
    private String userid;
    @ApiModelProperty("用户姓名")
    private String username;
    @ApiModelProperty("收藏时间")
    private Integer addtime;
    @ApiModelProperty("终端id")
    private Integer terminalid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeKfcFavor setCoursename(String coursename)
    {
        this.coursename = coursename;return this;
    }

    public VeKfcFavor setOpcosid(Integer opcosid)
    {
        this.opcosid = opcosid;return this;
    }

    public VeKfcFavor setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeKfcFavor(id=" + getId() + ", opcosid=" + getOpcosid() + ", coursename=" + getCoursename() + ", userid=" + getUserid() + ", username=" + getUsername() + ", addtime=" + getAddtime() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeKfcFavor setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeKfcFavor setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeKfcFavor setAddtime(Integer addtime)
    {
        this.addtime = addtime;return this;
    }

    public VeKfcFavor setUsername(String username)
    {
        this.username = username;return this;
    }

    public VeKfcFavor setUserid(String userid)
    {
        this.userid = userid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $opcosid = getOpcosid();result = result * 59 + ($opcosid == null ? 43 : $opcosid.hashCode());Object $addtime = getAddtime();result = result * 59 + ($addtime == null ? 43 : $addtime.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $coursename = getCoursename();result = result * 59 + ($coursename == null ? 43 : $coursename.hashCode());Object $userid = getUserid();result = result * 59 + ($userid == null ? 43 : $userid.hashCode());Object $username = getUsername();result = result * 59 + ($username == null ? 43 : $username.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeKfcFavor;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeKfcFavor)) {
            return false;
        }
        VeKfcFavor other = (VeKfcFavor)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$opcosid = getOpcosid();Object other$opcosid = other.getOpcosid();
        if (this$opcosid == null ? other$opcosid != null : !this$opcosid.equals(other$opcosid)) {
            return false;
        }
        Object this$addtime = getAddtime();Object other$addtime = other.getAddtime();
        if (this$addtime == null ? other$addtime != null : !this$addtime.equals(other$addtime)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$coursename = getCoursename();Object other$coursename = other.getCoursename();
        if (this$coursename == null ? other$coursename != null : !this$coursename.equals(other$coursename)) {
            return false;
        }
        Object this$userid = getUserid();Object other$userid = other.getUserid();
        if (this$userid == null ? other$userid != null : !this$userid.equals(other$userid)) {
            return false;
        }
        Object this$username = getUsername();Object other$username = other.getUsername();return this$username == null ? other$username == null : this$username.equals(other$username);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getOpcosid()
    {
        return this.opcosid;
    }

    public String getCoursename()
    {
        return this.coursename;
    }

    public String getUserid()
    {
        return this.userid;
    }

    public String getUsername()
    {
        return this.username;
    }

    public Integer getAddtime()
    {
        return this.addtime;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
